#include<stdio.h>
int main()
{
	int a;
	a = 1900;
	for (; a <= 2000;)
	{
		if (a % 4 ==0 && a % 100 !=0)
		{
			printf("%d\n", a);
		}
		a++;
	}
	
	
	return 0;
}